package com.gdssoft.pdaweb.dao.impl;

/*
 *  捷达世软件(深圳)有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
 */

import java.util.ArrayList;
import java.util.List;

import com.gdssoft.core.dao.impl.BaseDaoImpl;
import com.gdssoft.pdaweb.dao.PdaMeterOperateDao;
import com.gdssoft.pdaweb.model.PdaMeterOperate;
import com.gdssoft.pdaweb.model.water.PdaWaterMeter;

@SuppressWarnings("unchecked")
public class PdaMeterOperateDaoImpl extends BaseDaoImpl<PdaMeterOperate> 
	implements PdaMeterOperateDao {
	
	public PdaMeterOperateDaoImpl() {
		super(PdaMeterOperate.class);
	}

	
	@Override
	public List<PdaMeterOperate> getByAssetNumAndSiteId(String assetNum,String siteId) {
		List<PdaMeterOperate> list = new ArrayList();
		String hql ="from PdaMeterOperate where assetNum=? and siteId =?";
		list = this.findByHql(hql,new String[]{assetNum,siteId});
		return list;
		
	}
	
}
